﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using nERP.Model.Bas;
using nERP.Model;

namespace nERP.ViewModel.Bas.CodingRuleVMs
{
    public partial class CodingRuleTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._CodingRule._CodingList")]
        public ExcelPropety CodingList_Excel = ExcelPropety.CreateProperty<CodingRule>(x => x.CodingListId);
        [Display(Name = "_Model._CodingRule._Seq")]
        public ExcelPropety Seq_Excel = ExcelPropety.CreateProperty<CodingRule>(x => x.Seq);
        [Display(Name = "_Model._CodingRule._CodeRule")]
        public ExcelPropety CodeRule_Excel = ExcelPropety.CreateProperty<CodingRule>(x => x.CodeRule);
        [Display(Name = "_Model._CodingRule._FixedValue")]
        public ExcelPropety FixedValue_Excel = ExcelPropety.CreateProperty<CodingRule>(x => x.FixedValue);
        [Display(Name = "_Model._CodingRule._FixedRule")]
        public ExcelPropety FixedRule_Excel = ExcelPropety.CreateProperty<CodingRule>(x => x.FixedRule);
        [Display(Name = "_Model._CodingRule._GlideLen")]
        public ExcelPropety GlideLen_Excel = ExcelPropety.CreateProperty<CodingRule>(x => x.GlideLen);
        [Display(Name = "_Model._CodingRule._StartNumber")]
        public ExcelPropety StartNumber_Excel = ExcelPropety.CreateProperty<CodingRule>(x => x.StartNumber);
        [Display(Name = "_Model._CodingRule._GlideStep")]
        public ExcelPropety GlideStep_Excel = ExcelPropety.CreateProperty<CodingRule>(x => x.GlideStep);
        [Display(Name = "_Model._CodingRule._Glide")]
        public ExcelPropety Glide_Excel = ExcelPropety.CreateProperty<CodingRule>(x => x.Glide);
        [Display(Name = "_Model._CodingRule._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<CodingRule>(x => x.CreateTime, true);
        [Display(Name = "_Model._CodingRule._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<CodingRule>(x => x.UpdateTime, true);
        [Display(Name = "_Model._CodingRule._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<CodingRule>(x => x.CreateBy);
        [Display(Name = "_Model._CodingRule._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<CodingRule>(x => x.UpdateBy);
        [Display(Name = "_Model._CodingRule._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<CodingRule>(x => x.IsValid);

	    protected override void InitVM()
        {
            

        }

    }

    public class CodingRuleImportVM : BaseImportVM<CodingRuleTemplateVM, CodingRule>
    {
            //import

    }

}